package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.JzssHistoryMapper;
import com.ruoyi.control.domain.JzssHistory;
import com.ruoyi.control.service.IJzssHistoryService;

/**
 * 人员定位-基站历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Service
public class JzssHistoryServiceImpl extends ServiceImpl<JzssHistoryMapper, JzssHistory> implements IJzssHistoryService //修改
{
    @Autowired
    private JzssHistoryMapper jzssHistoryMapper;

    /**
     * 查询人员定位-基站历史数据
     * 
     * @param personSubstatonId 人员定位-基站历史数据主键
     * @return 人员定位-基站历史数据
     */
    @Override
    public JzssHistory selectJzssHistoryByPersonSubstatonId(String personSubstatonId)
    {
        return jzssHistoryMapper.selectJzssHistoryByPersonSubstatonId(personSubstatonId);
    }

    /**
     * 查询人员定位-基站历史数据列表
     * 
     * @param jzssHistory 人员定位-基站历史数据
     * @return 人员定位-基站历史数据
     */
    @Override
    public List<JzssHistory> selectJzssHistoryList(JzssHistory jzssHistory)
    {
        return jzssHistoryMapper.selectJzssHistoryList(jzssHistory);
    }

    /**
     * 新增人员定位-基站历史数据
     * 
     * @param jzssHistory 人员定位-基站历史数据
     * @return 结果
     */
    @Override
    public int insertJzssHistory(JzssHistory jzssHistory)
    {
        return jzssHistoryMapper.insertJzssHistory(jzssHistory);
    }

    /**
     * 修改人员定位-基站历史数据
     * 
     * @param jzssHistory 人员定位-基站历史数据
     * @return 结果
     */
    @Override
    public int updateJzssHistory(JzssHistory jzssHistory)
    {
        return jzssHistoryMapper.updateJzssHistory(jzssHistory);
    }

    /**
     * 批量删除人员定位-基站历史数据
     * 
     * @param personSubstatonIds 需要删除的人员定位-基站历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJzssHistoryByPersonSubstatonIds(String[] personSubstatonIds)
    {
        return jzssHistoryMapper.deleteJzssHistoryByPersonSubstatonIds(personSubstatonIds);
    }

    /**
     * 删除人员定位-基站历史数据信息
     * 
     * @param personSubstatonId 人员定位-基站历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJzssHistoryByPersonSubstatonId(String personSubstatonId)
    {
        return jzssHistoryMapper.deleteJzssHistoryByPersonSubstatonId(personSubstatonId);
    }

    @Override
    public JzssHistory selectJzssHistoryByPersonSubstatonCode(String positionSubstationCode) {
        return jzssHistoryMapper.selectJzssHistoryByPersonSubstatonCode(positionSubstationCode);
    }
}
